w3c document.forms[0].fieldname equivalent
Posted
by Amien
on Stack Overflow
See other posts from Stack Overflow
or by Amien
Published on 2010-05-11T12:20:54Z
Indexed on
2010/05/11
12:24 UTC
Read the original article
Hit count: 268
I've been using
document.forms[0].fieldname.value
to get values in javascript from a form, but I'd like to use a name to reference the field and not a 0, what would be the equivalent these days since isn't compliant?
© Stack Overflow or respective owner